package com.financial.business.management.controller;

import com.financial.business.management.service.FinancialPaydetailsConfigService;
import com.financial.business.management.utils.apiresult.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Map;

/**
 * 平台支付详情信息表
 * 
 * @author zhaopengjun
 * @email 1428939700@qq.com
 * @date 2019-08-18 20:56:09
 */
 
@RestController
@RequestMapping("/financialPaydetailsConfig")
public class FinancialPaydetailsConfigController {
	@Autowired
	private FinancialPaydetailsConfigService financialPaydetailsConfigService;

	/**
	 * @Author zhaopengjun
	 * @Description // 生成支付详情信息
	 * @Date 21:32 2019/8/18
	 * @Param
	 * @return
	 **/
	@PostMapping("/createPayDetails")
	public ApiResult createPayDetails(@RequestParam Map<String,Object> requestMap ){

		return financialPaydetailsConfigService.createPayDetails(requestMap);
	}

	/**
	 * @Author zhaopengjun
	 * @Description //获取对应平台的各个不同业务渠道的支付配置参数
	 * @Date 10:35 2019/8/20
	 * @Param
	 * @return
	 **/
/*	@PostMapping("/getPayBusinessPram")
	public String getPayBusinessPram(@RequestParam("platfromId") String platfromId , @RequestParam("channelsId") String channelsId){

		return financialPaydetailsConfigService.getPayBusinessPram(platfromId,channelsId);
	}*/
	//够样优店-银盛支付-环境配置参数
	@RequestMapping("/getYSBusiness")
    public String getYSBusiness(@RequestParam("platfromId") String platfromId, @RequestParam("channelsId") String channelsId){

		return financialPaydetailsConfigService.getYSBusiness(platfromId,channelsId);
	}
}
